/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package task05;

/**
 *
 * @author Administrator
 */
public class Calc {
    public int add(int a, int b){
        return a + b;
    }
    
    public int minus(int a, int b){
        return a - b;
    }
    
    public int multiple(int a, int b){
        return a * b;
    }
    
    public int divide(int a, int b) throws Exception {
        if(b==0){
            throw new Exception("除数不能为0");
        }
        return a/b;
    }
    public void display(){}
    

}
